﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for GCatalogBUS
/// </summary>
public class GCatalogBUS
{
    GCatalogDAL gCatalogDAL = new GCatalogDAL();
    public GCatalogBUS()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public DataTable returnAllGCatalog()
    {
        return gCatalogDAL.getAllGCatalog();
    }
    public DataTable returnCGiftByID(int id) {
        return gCatalogDAL.getCGiftByID(id);
    }

    public bool updateGiftCatalog(int id, string name)
    {
        return gCatalogDAL.updateGiftCatalog(id, name);
    }

    public bool updateGiftCatalogStatus(int id)
    {
        return gCatalogDAL.updateGiftCatalogStatus(id);
    }

    public bool insertGiftCatalog(string Name)
    {
        return gCatalogDAL.insertGiftCatalog(Name);
    }
}